Skip to content

feat: add option allowedCookie for limit cookie parse to an whitelist#127

Open
cesco69 wants to merge 1 commit intoexpressjs:masterfrom
cesco69:allowed-cookie
Open

feat: add option allowedCookie for limit cookie parse to an whitelist#127
cesco69 wants to merge 1 commit intoexpressjs:masterfrom
cesco69:allowed-cookie

Conversation

@cesco69
Copy link

@cesco69 cesco69 commented Apr 15, 2025

close #126

Parsing a long list of cookies on each request has a performance impact!

This PR introduce an option for limit the cookie parsing on a limit numer of cookies, eg.:

app.use(cookieParser('keyboard cat', {
   allowedCookie: ['myCookie']
}))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: limit cookie parse only on some cookie

1 participant